package com.cskaoyan.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 请求参数限定 params
 * @author stone
 * @date 2021/11/22 15:57
 */
@RequestMapping("param/limit")
@Controller
public class ParamLimitController {

    //localhost:8080/param/limit/login?username=songge&password=niupi
    @ResponseBody
    @RequestMapping(value = "login",params = {"username","password"})
    public String login() {
        return "login success";
    }
}
